<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <h1>今天又是努力的一天！！</h1>
    <p>用户：<input type="text" v-model.trim="username"></p>
    <p>年纪：<input type="text" v-model.number="age"></p>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  <script>
    const aoo = new Vue({
      el: '#app',
      //数据
      data: {
        //
        username:'',
        age:'',
      }
    })
  </script>
</body>

</html>